{include file="public_head"}
{include file="public_menu"}

<div class="content_center">
  <div class="main_center">
    {include file="public_information_menu"}
    <div class="main_right right">
      <div class="order_content">
        <div class="tablist">
          <ul>
            <li {eq name=":input('status')" value="" }class="active"{/eq}><a href="{:url('MemberOrder/index')}">全部订单</a></li>
            <li {eq name=":input('status')" value="w" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>'w'])}">待付款</a></li>
            <li {eq name=":input('status')" value="1" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>1])}">待发货</a></li>
            <li {eq name=":input('status')" value="2" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>2])}">待收货</a></li>
            <li {eq name=":input('status')" value="3" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>3])}">已收货</a></li>
            <li {eq name=":input('status')" value="4" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>4])}">已完结</a></li>
            <li {eq name=":input('status')" value="6,7" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>'6,7'])}">申请退款/退货</a></li>
            <li {eq name=":input('status')" value="9" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>9])}">退货中</a></li>
            <li {eq name=":input('status')" value="10" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>10])}">退货\退款成功</a></li>
            <li {eq name=":input('status')" value="11" }class="active"{/eq}><a href="{:url('MemberOrder/index',['status'=>11])}">退货\退款失败</a></li>
            <li {eq name=":input('status')" value="auction" }class="active"{/eq}><a href="{:url('MemberOrder/auction',['status'=>'auction'])}">拍卖订单</a></li>
          </ul>
          <div class="search right">
            <input type="search" id="order_name" placeholder="订单号"><label><img src="__STATIC__/img/icon70.png" onclick="search_order()"></label>
          </div>
        </div>
        <table class="table_order">
          <tr>
            <!--<span class="time">近三个月订单<img src="__STATIC__/img/more3.png"></span>-->
            <th class="det">   订单详情</th>
            <th class="text-center name">收货人</th>
            <th class="text-center num">金额</th>
            <th class="text-center state">订单状态</th>
            <th class="text-center operate">操作</th>
          </tr>
        </table>
        <div class="tabcon">
          <div class="active">
            {volist name="result" id="vo"}
            <div class="order_details">
              <div class="title">

                <span class="order_num">订单号： <span>{$vo.order_number}</span></span>
              </div>
              <table border="0">

                <tr>
                  <td class="det">
                    <img src="/{$vo.picUrl}" class="pic left">
                    <div class="left goods_det" onclick="jump_goods()">
                      <div class="goods left">
                        <h4>{$vo.title|reStrLen=###,33}</h4>
                      </div>
                      <div class="goods_num left">×1</div>
                    </div>
                  </td>
                  <td class="name text-center">{$vo.address_name}<img src="__STATIC__/img/icon72.png"></td>
                  <td class="num text-center">
                    <div class="num_1">总额￥{$vo.price}</div>
                    <div class="num_2">{$vo.way}</div>
                  </td>
                  {switch name="$vo.status"}
                  {case value="0"}
                  <td class="state text-center">
                    <div class="cancel">等待付款</div>
                    <div class="details"><a href="{:url('auction/detail',['id'=>$vo.id])}" target="_blank">订单详情</a></div>
                  </td>
                  <td class="operate text-center">
                    <div class="buy"><a href="{:url('auction/pay',['oid'=>$vo.id])}"><img src="__STATIC__/img/icon73.png">立即支付</a></div>
                  </td>
                  {/case}
                  {case value="1"}
                  <td class="state text-center">
                    <div class="cancel">等待发货</div>
                    <div class="details"><a href="{:url('auction/detail',['id'=>$vo.id])}" target="_blank">订单详情</a></div>
                  </td>
                  {/case}
                  {case value="2"}
                  <td class="state text-center">
                    <div class="cancel">等待收货</div>
                    <div class="details"><a href="javascript:affirm_order({$vo.id},{$vo.user_id});">确认收货</a></div>
                    <div class="details"><a href="{:url('MemberOrder/detail',['order_id'=>$vo.id])}" target="_blank">订单详情</a></div>
                  </td>
                  <td class="operate text-center">
                    <div class="buy"><a href="{:url('MemberOrder/logistics',['order_id'=>$vo.id])}" target="_blank"><img src="__STATIC__/img/icon73.png">查看物流</a></div>
                  </td>
                  {/case}
                  {case value="3"}
                  <td class="state text-center">
                    <div class="cancel">已完结</div>
                    <div class="details"><a href="{:url('auction/detail',['id'=>$vo.id])}" target="_blank">订单详情</a></div>
                  </td>
                  {/case}
                  {/switch}
                </tr>

              </table>

            </div>
            {/volist}
          </div>

        </div>
      </div>
      <div class="main_right">
        <div class="like_con">
          <div class="title">猜你喜欢<span>根据你的浏览记录推荐的商品</span></div>
          <ul class="list_like">
            {volist name="guess_like" id="item"}
            <li>
              <a href="{:url('shop/ShopGoods/index',['good_id'=>$item.id])}" target="_blank">
                <img src="/{$item.thumb_img}" onerror="this.src='__STATIC__/img/232.png'">
                <div class="goods">{$item.title|reStrLen=###,29}</div>
                <div class="num">已有<span>{$item.evaluate_number}+</span>条评价</div>
                <div class="price">￥{$item.price}</div>
                <div class="buy">立即购买</div>
              </a>
            </li>
            {/volist}
          </ul>
        </div>
      </div>

    </div>
  </div>
</div>
<script>


  function search_order() {
    var title = $('#order_name').val();
    var status = "{:input('status')}";
    if (status=='') {
      window.location ="{:url('MemberOrder/index')}?title="+title;
    }else {
      window.location ="{:url('MemberOrder/index')}?status="+status+"&title="+title;
    }

  }
</script>
{include file="public_foot"}